// pages/index/old/old.js
Page({
  data: {
    bannerImages: [
      { url: " https://z1.ax1x.com/2023/11/12/piGHYFS.jpg " },
      { url: " https://z1.ax1x.com/2023/11/12/piGHlLt.jpg " },
    ],
    gridList: [
      {
        name: "身份证遗失补办",
        img: "https://z1.ax1x.com/2023/10/28/pie1O6f.png",
      },
      {
        name: "驾驶证到期补换领",
        img: "https://z1.ax1x.com/2023/12/01/pirquQA.png",
      },
      {
        name: "养老保险办理",
        img: "https://z1.ax1x.com/2023/12/01/pirv1PK.png",
      },
      {
        name: "社保办理",
        img: "https://z1.ax1x.com/2023/12/01/pirv5GT.png",
      },
      {
        name: "公积金办理",
        img: "https://z1.ax1x.com/2023/12/01/pirvozF.png",
      },
      {
        name: "房产证遗失补办",
        img: "https://z1.ax1x.com/2023/12/01/pirvHsJ.png",
      },
      {
        name: "结婚证遗失补办",
        img: "https://z1.ax1x.com/2023/12/01/pirvxJK.png",
      },
      // 在这里添加更多的选项
    ],
  },
  onLoad: function () {
    // 这里处理页面加载时的逻辑
  },
  // 这里定义其他的函数
  // 传递页面参数
  navigateToSecondPage: function (e) {
    const name = e.currentTarget.dataset.name;
    wx.navigateTo({
      url: `./serve/serve?name=${name}`,
    });
  },
});
